package com.education.service.system;

import com.education.mapper.system.SystemAdminRoleMapper;
import com.education.service.BaseService;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * 用户角色业务层
 * @author Jason
 * @version 1.0.0
 * @date 2021-11-21 00:52
 */
@Service
public class SystemAdminRoleService extends BaseService<SystemAdminRoleMapper> {

    public List<Map> findRoleListByAdminId(Integer adminId) {
        return mapper.findRoleListByAdminId(adminId);
    }

    public int deleteByRoleId(Integer id) {
        return mapper.deleteByRoleId(id);
    }

    public int batchDeleteByRoleIds(List<Integer> roleIds) {
        return mapper.batchDeleteByRoleIds(roleIds);
    }
}
